#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int arr[10] = { 0 };
    char* store[10] = { "ling","yi","er","san","si","wu","liu","qi","ba","jiu" };
    int n = 0;
    int count = 0;
    scanf("%d", &n);
    if (n == 0)
    {
        printf("ling\n");
    }
    int i = 0;
    while (n)
    {
        if (n > 0)
        {
            arr[i++] = n % 10;
            n /= 10;
        }
        else
        {
            arr[i++] = -n % 10;
            n /= -10;
            printf("fu");
            count++;
        }
    }
    while (i > 0)
    {
        if (count > 0)
        {
            printf(" ");
        }
        printf("%s", store[arr[--i]]);
        count++;
    }
    return 0;
}